#pragma once

#include "Machine.h"
#include "Client.h"
#include "Generator.h"
#include "Config.h"

class Checkout : public Machine
{
public:

	Checkout(int capacity)
		: Machine(capacity)
	{
	}

	virtual ~Checkout(void)
	{
	}

	Client* GetClient()
	{
		return (Client *)GetCurrentWorkItem();
	}

protected:
	virtual int GetWorkUnits()
	{
		return Generator::GetNormal(Generator::GetTimeFromSeconds(Config::PaySecondsMean), Config::PaySd);
	}
};

